<template>
	<view class="wrap">
		<u-form :model="form" ref="uForm">
			<view class="model">
				<u-form-item label="单位抬头" label-width="160" >
					<u-radio-group v-model="form.invoice_kind" >
						<u-radio v-for="(item, index) in radioList" active-color="#FBB000" :key="index" :name="item.val" :disabled="item.disabled">{{ item.name }}</u-radio>
					</u-radio-group>
				</u-form-item>
				<view class="" v-if="form.invoice_kind === 1">
					<u-form-item>
						<view class="width-100 flex flex-jc-sa">
							<view class="type" :class="form.invoice_type === 2 ? 'typeActice' : ''">增值税专用发票</view>
							<view class="type" :class="form.invoice_type === 3 ? 'typeActice' : ''" >增值税普通发票</view>
						</view>
					</u-form-item>

					<u-form-item label="公司名称" label-width="160"><u-input :disabled='true' v-model="form.company_title" placeholder="请输入公司名称" /></u-form-item>
					<u-form-item label="公司税号" label-width="160"><u-input :disabled='true' v-model="form.tax_number" placeholder="请输入纳税人识别" /></u-form-item>
					<view class="" v-if="form.invoice_type === 2">
						<u-form-item label="企业开户行" label-width="160"><u-input :disabled='true' v-model="form.bank_address" placeholder="请输入公司名称" /></u-form-item>
						<u-form-item label="账号" label-width="160"><u-input :disabled='true' v-model="form.card_numbers" placeholder="请输入纳税人识别" /></u-form-item>
						<u-form-item label="注册电话" label-width="160"><u-input :disabled='true' v-model="form.registered_telephone" placeholder="请输入公司名称" /></u-form-item>
						<u-form-item label="注册地址" label-width="160"><u-input :disabled='true' v-model="form.registered_address" placeholder="请输入纳税人识别" /></u-form-item>
					</view>
				</view>
				<view class="" v-else>
					<u-form-item label="抬头名称" label-width="160"><u-input  :disabled='true' v-model="form.person_title" placeholder="请输入抬头名称或姓名" /></u-form-item>
					<!-- <u-form-item label="其他备注" label-width="160" :border-bottom="false"><u-input v-model="form.sex" type="textarea" placeholder="填写备注、地址等（非必填）" /></u-form-item> -->
				</view>
			</view>
	    <view class="model">
	    	<u-form-item label="开票金额" label-width="160"><u-input v-model="money" placeholder="" /></u-form-item>
	    </view>
		</u-form>
		<view class="fixedBottomBtn"><view class="bottomBtn1" @click="submit">提交</view></view>
	</view>
</template>

<script src="./orderInvoiceDetail.js"></script>

<style lang="scss" scoped>
@import './orderInvoiceDetail.scss';
</style>
